//
//  AutocompleteTableView.h
//  jungoo
//
//  Created by Sinbad Fly on 8/20/12.
//  Copyright (c) 2012 ABOM. All rights reserved.
//

#import <UIKit/UIKit.h>

@class AutocompleteView;

@protocol AutocompleteViewDelegate <NSObject>

- (void)autocompleteView:(AutocompleteView *)autocompleteView didSeletedWithString:(NSString*)aString;

@end

@interface AutocompleteView : UIView<UITableViewDelegate,UITableViewDataSource>
{
    NSMutableArray *autocompleteDataSource;
}

@property (readonly) UITableView *tableView;
@property (strong) NSArray *dataSource;
@property (strong) NSString *keyName;
@property (assign) id<AutocompleteViewDelegate> delegate;
@property (assign) __weak NSObject *userInfo;

- (void)searchAutocompleteEntriesWithSubstring:(NSString *)substring;

@end
